POV-Ray : Newsgroups : povray.programming : Where can I find the reflected ray? : Re: Where can I find the reflected ray? Server Time
28 Jul 2024 06:12:49 EDT (-0400)
  Re: Where can I find the reflected ray?  
From: Wu Yang
Date: 13 Oct 2002 23:55:59
Message: <3daa404f@news.povray.org>
Is "box.pov" a scene with reflection. I do render it, but the reflect()
function is not called because I define an "ofstream" object "output" in
reflect() function. The exact code is "ofstream output("C:\\out.dat");".And
then render "box.pov",however, no "out.dat" formed. What's wrong?

Thanks a lot.
Best Regard
Wu Yang

"Christopher James Huff" <chr### [at] maccom> wrote in message
news:chr### [at] netplexaussieorg...
> In article <3da9eae1@news.povray.org>, "Wu Yang" <wya### [at] cswrightedu>
> wrote:
>
> > Thank you for your reply. Yes, I think that the reflect() will be called
> > when I run the program. Why this is not right?
>
> The Reflect() function will only be called when POV is computing
> reflection. Just running the program won't do that, you need to render a
> scene with reflection. This is so obvious I can't believe you would be
> doing otherwise, but you haven't given any indication of what exactly
> you are doing other than "running the program", which isn't enough.
>
>
> > I do modify what should be changed and build the project without
> > error. I define an "ofstream" object "output" by ofstream
> > output("C:\\out.dat"); and run the program, but no out.dat formed.
>
> *Where* do you create the file? What is the *exact* code you are using
> to create it and write the data? What is the scene file you are testing
> it with?
>
> --
> Christopher James Huff <cja### [at] earthlinknet>
> http://home.earthlink.net/~cjameshuff/
> POV-Ray TAG: chr### [at] tagpovrayorg
> http://tag.povray.org/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.